package com.hdaccp.lettingboot.controller;
import com.hdaccp.lettingboot.bean.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/user")
public class UserController {
    @RequestMapping("/getUser")
    public User getUser(){
        User user = new User(1,"张三","河北邯郸")  ;
        return user ;
    }
}
